Ext.define('DragonApp.util.Script', {

  statics : {

    loadLocale : function (){
      var lang = localStorage ? (localStorage.getItem('user-lang') || 'zh_CN') : 'zh_CN',
      file = Ext.util.Format.format("resources/local/{0}.js", lang);

      Ext.Loader.loadScript({url: file, onError: function(){
      alert('Error loading locale file. Please contact system administrator.');
      }});
    }

  }
});